package com.loveto.service;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;

public class ShowMsgActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Intent i = getIntent();
		Bundle extras = i.getExtras();
		String msg = extras.getString("msg");
		
		new AlertDialog.Builder(this)
    	.setTitle("러브토 알림")
    	.setMessage(msg)
    	.setPositiveButton("확인", new DialogInterface.OnClickListener()
    	{
    		@Override
    		public void onClick(DialogInterface dialog, int which)
    		{
    			dialog.dismiss();
    			finish();
    		}
    	})
    	.show();
		
	}

}
